package com.yitiao.spi;

import java.util.ServiceLoader;

public class MainTest {
    public static void main(String[] args){
        ServiceLoader<Logger> loggerServiceLoader = ServiceLoader.load(Logger.class);
        for (Logger logger : loggerServiceLoader) {
            logger.log("Hello, Java SPI!");
        }
    }
}
